package com.mxpio.erp.common.plm.vo;

import com.mxpio.erp.common.plm.bo.ProjectTaskDeliverableBO;
import com.mxpio.erp.common.plm.entity.ProjectTaskCompleteDeliverableDraft;
import com.mxpio.erp.common.plm.entity.ProjectTaskDeliverableDraft;
import com.mxpio.erp.common.plm.entity.ProjectTaskEndDeliverableDraft;
import com.mxpio.erp.common.plm.entity.ProjectTaskExecutionLog;
import com.mxpioframework.jpa.annotation.DictAble;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@Schema(description = "项目任务审批内容详情")
public class ProjectTaskDetailVO implements Serializable, DictAble {

    private ProjectTaskExecutionLog taskExecutionLog;

    private List<ProjectTaskDeliverableBO> projectTaskDeliverableBOS;

    @Transient
    private Map<String, String> textMap;
    public String putText(String key, String value) {
        if (textMap == null) {
            textMap = new HashMap<>();
        }
        return textMap.put(key, value);
    }

}
